﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Objects
{
    [Table("Bus")]
    public class Bus
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [InverseProperty("Id")]
        [ForeignKey("FK_ROUTEID")]
        public virtual Route Routes { get; set; }

        [InverseProperty("UserId")]
        [ForeignKey("FK_MERCHANTID")]
        public virtual UserProfile UserProfile { get; set; }
       

        public int Seats { get; set; }
    }
}
